package com.liang.object;

public class ObjectDemo {
    public static void main(String[] args) {
        Student stu = new Student("小明",19);
        Student stu1 = new Student("小明",19);

        System.out.println(stu.toString());

        System.out.println(stu == stu1);
        System.out.println(stu.equals(stu1));


    }
}
